const db = require("../dataBase/dao/order");
const service = {};

service.query = async (req, res) => {
    let data = req.body;
    let result = await db.query(data);
    return result;
};
service.create = async (req, res) => {
    let data = req.body;
    let result = await db.create(data);
    return result;
};
service.update = async (req, res) => {
    let data = req.body;
    let result = await db.update(data);
    return result;
};
module.exports = service;
